package com.notknow.product.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.notknow.product.dto.UserInfoDto;
import com.notknow.product.mapper.UserInfoMapper;

@Service
public class UserInfoService {
	@Autowired
	private UserInfoMapper userInfoMapper;
	
	public List<UserInfoDto> findUserInfoByUsernamePasswory(UserInfoDto userInfoDto) {
		Map<String, Object> paramsMap = new HashMap<String, Object>();
		paramsMap.put("userName", "admin");
		return userInfoMapper.findUserInfoByUsernamePasswory(paramsMap);
	}
	
	public void addUserInfo(UserInfoDto userInfoDto) {
		 userInfoMapper.addUserInfo(userInfoDto);
	}
}

